package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.AccidentsManagementDao;
import io.renren.entity.AccidentsManagementEntity;
import io.renren.service.AccidentsManagementService;



@Service("accidentsManagementService")
public class AccidentsManagementServiceImpl implements AccidentsManagementService {
	@Autowired
	private AccidentsManagementDao accidentsManagementDao;
	
	@Override
	public AccidentsManagementEntity queryObject(Integer id){
		return accidentsManagementDao.queryObject(id);
	}
	
	@Override
	public List<AccidentsManagementEntity> queryList(Map<String, Object> map){
		return accidentsManagementDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return accidentsManagementDao.queryTotal(map);
	}
	
	@Override
	public void save(AccidentsManagementEntity accidentsManagement){
		accidentsManagementDao.save(accidentsManagement);
	}

	@Override
	public void update(AccidentsManagementEntity accidentsManagement){
		accidentsManagementDao.update(accidentsManagement);
	}
	
	@Override
	public void delete(Integer id){
		accidentsManagementDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		accidentsManagementDao.deleteBatch(ids);
	}
	
}
